import request from '@/utils/request';
import { IndicatorListItem } from './types';

export const getIndicatorList = () => {
  return request<IndicatorListItem[]>({
    url: '/system/management/list',
    method: 'get'
  });
};
export const updateIndicatorInfo = (data: any) => {
  return request({
    url: '/system/management',
    method: 'put',
    data: data
  });
};
export const addIndicatorInfo = (data: any) => {
  return request<IndicatorListItem>({
    url: '/system/management',
    method: 'post',
    data: data
  });
};
